﻿@using CuongHanh.Models
@model CuongHanh.Models.NotMapDB.CustomerModel
@{
    Layout = "../Shared/_GemLayout.cshtml";
    ViewBag.Title = "Đăng ký";
}


<div class="content">
    <div class="block">
        <p class="title">@Html.GetResource("createyouraccount")</p>
        @using (Html.BeginForm("Register",
                "Customer",
                FormMethod.Post))
        {
            @Html.AntiForgeryToken()
            <div class="form address">
                @if(!string.IsNullOrWhiteSpace(ViewBag.ErrorMessage))
                {
                    <div class="field" style="text-align: right; color: red;">
                        <span>@ViewBag.ErrorMessage</span>
                    </div>
                }
                <div class="field">
                    @Html.LabelFor(c => c.FullName,
                            Html.GetResource("fullname"),
                            new
                            {
                                    @class = "field_L"
                            })
                    @Html.TextBoxFor(c => c.FullName)
                </div>
                <div class="field">
                    @Html.LabelFor(c => c.Username,
                            Html.GetResource("username"),
                            new
                            {
                                    @class = "field_L"
                            })
                    @Html.TextBoxFor(c => c.Username)
                </div>
                <div class="field">
                    @Html.LabelFor(c => c.Password,
                            Html.GetResource("password"),
                            new
                            {
                                    @class = "field_L"
                            })
                    @Html.PasswordFor(c => c.Password)
                </div>
                <div class="field">
                    @Html.LabelFor(c => c.RePassword,
                            Html.GetResource("verifypassword"),
                            new
                            {
                                    @class = "field_L"
                            })
                    @Html.PasswordFor(c => c.RePassword)
                </div>
                <div class="field">
                    @Html.LabelFor(c => c.Phone,
                            Html.GetResource("phone"),
                            new
                            {
                                    @class = "field_L"
                            })
                    @Html.TextBoxFor(c => c.Phone)
                </div>
                <div class="field">
                    @Html.LabelFor(c => c.Email,
                            Html.GetResource("email"),
                            new
                            {
                                    @class = "field_L"
                            })
                    @Html.TextBoxFor(c => c.Email)
                </div>
                <div class="field">
                    @Html.LabelFor(c => c.Address,
                            Html.GetResource("address"),
                            new
                            {
                                    @class = "field_L"
                            })
                    @Html.TextAreaFor(c => c.Address)
                </div>
                <div class="field">
                    <label class="field_L"></label><input class="btn_orange" type="submit" value="@Html.GetResource("createyouraccount")    " />
                </div>
                <p class="btn_link">@Html.GetResource("haveanaccount")? <a href="#">@Html.GetResource("signin")</a></p>
            </div>
        }
    </div>
</div>